package com.example.mall_system.mapper;

import com.example.mall_system.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> getAllUsers();
    User selectByUsername(@Param("username") String username);
    int insert(User user);
    User selectById(@Param("id") Long id);
}